/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package milkyway.hightech.comparators;

import java.util.Comparator;
import milkyway.hightech.entry.Entry;

/**
 *
 * @author michael
 */
public class SortByName implements Comparator<Entry>
{
    @Override
    public int compare(Entry e1, Entry e2)
    {
	String s1 = e1.getReasonOfTransfer();
	String s2 = e2.getReasonOfTransfer();
	int i = 2;
	int j = 4;
	int r = i + j;
	return s1.compareTo(s2);
    }
    
    @Override
    public boolean equals(Object obj)
    {
	return obj instanceof Entry ? true : false;
    }

    @Override
    public int hashCode()
    {
	int hash = 7;
	return hash;
    }
}
